class LIST{ETP} < $LIST{ETP}


Ancestors
$LIST{_} $STR $ARR{_} $RO_ARR{_}
$CONTAINER{_} $ELT{_} $ELT A_LIST{_}



Public


Features
aget(i: INT): ETP .. Included as aget
append(a:ETP) .. Included as append
**** Append element "a", even if a is void
append_all(a:$CONTAINER{ETP}) .. Included as append_all
**** Append a into self
aset(i: INT,v: ETP) .. Included as aset
clear .. Included as clear
**** Set each array element to void. Set size to zero
copy:SAME .. Included as copy
**** A copy of self.
copy_from(src:$ELT{ETP}) .. Included as copy_from
**** Copy as many elements from `src' to self as will fit.
create(a: $ELT{ETP}): SAME .. Included as create
**** Convert "a" into a list
create: SAME .. Included as create
create_from(a: ARRAY{ETP}): SAME .. Included as create_from
**** Create an array which contains the elements of "a"
create_sized(n: INT): SAME .. Included as create_sized
**** Create a list with "n" empty locations
equals(a: $RO_ARR{ETP}):BOOL .. Included as equals
has(e: ETP): BOOL .. Included as has
**** True if array contains "e"
has_ind(i: INT): BOOL .. Included as has_ind
has_range(beg,num: INT): BOOL .. Included as has_range
insert_after(l:INT,v:ETP) .. Included as insert_after
**** Insert v at location i, pushing elements upward
insert_all_after(l: INT, e: $CONTAINER{ETP}) .. Included as insert_all_after
insert_all_before(l: INT, e: $CONTAINER{ETP}) .. Included as insert_all_before
insert_before(l: INT, v: ETP) .. Included as insert_before
remove_index(i: INT) .. Included as remove_index
resize(n: INT) .. Included as resize
**** Allocate a new array and copy whatever will fit of the old portion. Changes the actual size
size: INT .. Included as size
str: STR .. Included as str
**** Prints out a string version of the array of the components that are under $STR, and their associated indices

Iters
elt!: ETP .. Included as elt!
**** Yield each element of self in order. Self may be void.
ind!:INT .. Included as ind!
**** Yield the indices of self in order. Self may be void.
set!(val:ETP) .. Included as set!
**** Set successive elements of self to the values of `val'.


Private

attr arr: FLIST{ETP}; .. Included as arr
attr arr: FLIST{ETP}; .. Included as arr
elt_str(e: ETP,i: INT): STR .. Included as elt_str

The Sather Home Page